var app = angular.module('theApp',['ngRoute','ui.bootstrap']);

app.config(function($routeProvider){
    $routeProvider
        .when('/', 
            {
                templateUrl:'pageResource?page='+config.page+'&location=partials/home.html'
                , controller: 'HomeCtrl'
                , title: 'Home'
            }
        )
        .otherwise({redirectTo : '/'})
    ;
});